-- GENERATED SPELL FOR [Treasure Hunting Pirate] --


function spell0_7899(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7899', 675, 1)
end

function Sorts_7899(pUnit, Event)
local choix_sorts_7899 = math.random(0, 0)
if choix_sorts_7899 == 0 then
pUnit:RegisterEvent('spell0_7899', 1, 1)
end
end

function mob7899_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7899', math.random(1500, 3000), 1)
end

function mob7899_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7899_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7899_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7899, 1, 'mob7899_Action')
RegisterUnitEvent(7899, 2, 'mob7899_Leave')
RegisterUnitEvent(7899, 3, 'mob7899_Kill')
RegisterUnitEvent(7899, 4, 'mob7899_Die')
